/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.planeteVelo.backedBean;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

/**
 *
 * @author apo
 */
@Entity

public class LigneTicket implements Serializable{
    @Id
    @GeneratedValue( strategy = GenerationType.IDENTITY)
    private int idLigneTicket;
    private double remise;
    private double prixRemise;
    private double prix;
    @ManyToOne
    @JoinColumn(name = "FK_Ticket")
    private Ticket ticket = new Ticket();
    @ManyToOne
    @JoinColumn(name = "FK_Categorie")
    private Categorie categorie= new Categorie();

    public LigneTicket() {
    }

    public int getIdLigneTicket() {
        return idLigneTicket;
    }

    public double getRemise() {
        return remise;
    }

    public double getPrixRemise() {
        return prixRemise;
    }

    public double getPrix() {
        return prix;
    }

    public void setIdLigneTicket(int idLigneTicket) {
        this.idLigneTicket = idLigneTicket;
    }

    public void setRemise(double remise) {
        this.remise = remise;
    }

    public void setPrixRemise(double prixRemise) {
        this.prixRemise = prixRemise;
    }

    public void setPrix(double prix) {
        this.prix = prix;
    }

    public Ticket getTicket() {
        return ticket;
    }

    public Categorie getCategorie() {
        return categorie;
    }

    public void setTicket(Ticket ticket) {
        this.ticket = ticket;
    }

    public void setCategorie(Categorie categorie) {
        this.categorie = categorie;
    } 
    
    }
